package com.ruoyi.wbs.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目活动对象 project_activity
 * 
 * @author renyuxin
 * @date 2024-06-11
 */
public class ProjectActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动主键 */
    private Long avtivityId;

    /** 项目主键 */
    @Excel(name = "项目主键")
    private Long projectId;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String activityName;

    /** 活动上级 */
    @Excel(name = "活动上级")
    private Long activityPid;

    /** 排序 */
    @Excel(name = "排序")
    private Integer activitySort;

    /** 承包商主键 */
    @Excel(name = "承包商主键")
    private Long contractorId;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 完成百分比 */
    @Excel(name = "完成百分比")
    private BigDecimal completePercent;

    /** 第几级 */
    @Excel(name = "第几级")
    private Integer level;

    public void setAvtivityId(Long avtivityId) 
    {
        this.avtivityId = avtivityId;
    }

    public Long getAvtivityId() 
    {
        return avtivityId;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setActivityName(String activityName) 
    {
        this.activityName = activityName;
    }

    public String getActivityName() 
    {
        return activityName;
    }
    public void setActivityPid(Long activityPid) 
    {
        this.activityPid = activityPid;
    }

    public Long getActivityPid() 
    {
        return activityPid;
    }
    public void setActivitySort(Integer activitySort) 
    {
        this.activitySort = activitySort;
    }

    public Integer getActivitySort() 
    {
        return activitySort;
    }
    public void setContractorId(Long contractorId) 
    {
        this.contractorId = contractorId;
    }

    public Long getContractorId() 
    {
        return contractorId;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setCompletePercent(BigDecimal completePercent) 
    {
        this.completePercent = completePercent;
    }

    public BigDecimal getCompletePercent() 
    {
        return completePercent;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("avtivityId", getAvtivityId())
            .append("projectId", getProjectId())
            .append("activityName", getActivityName())
            .append("activityPid", getActivityPid())
            .append("activitySort", getActivitySort())
            .append("contractorId", getContractorId())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("completePercent", getCompletePercent())
            .append("level", getLevel())
            .toString();
    }
}
